/**══════════════════════════════════╗
*作    者：songbaobao                                                 ║
*职    业：我以我血荐轩辕                                              ║                                              
*CSND地址：https://blog.csdn.net/weixin_43949535                       ║
**GitHub ：https://github.com/TsinghuaLucky912/My_own_C-_study_and_blog║
*═══════════════════════════════════╣
*创建时间：                                                           
*功能描述：                                                            
*                                                                      
*                                                                      
*═══════════════════════════════════╣
*结束时间:                                                           
*═══════════════════════════════════╝
//                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
//            __.'              ~.   .~              `.__
//          .'//              西南\./联大               \\`.
//        .'//                     |                     \\`.
//      .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
//    .'//.-"                 `-.  |  .-'                 "-.\\`.
//  .'//______.============-..   \ | /   ..-============.______\\`.
//.'______________________________\|/______________________________`.
*/
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <ctype.h>
#include <queue>
#include <list>
#include <map>
#include <math.h>
#include <algorithm>
#include <iomanip>
using namespace std;

#if C2
bool mycompare(double a, double b)
{
	return a < b;
}
#endif

#if D
bool mycompare2(int a, int b)
{
	return a > b;
}
#endif

#if E
#define shiwan 100000
#define yiwan 10000
#endif

int main()
{
#if A
	double a, b, c, tem;
	scanf("%lf%lf%lf", &a, &b, &c);

	if (a != 0 && (b * b - 4 * a * c) > 0)
	{
		tem = sqrt(b * b - 4 * a * c);
		printf("r1=%7.2f\n", (-1 * b + tem) / (2 * a));
		printf("r2=%7.2f", (-1 * b - tem) / (2 * a));
	}
	else
	{
		printf("No real roots!\n");
	}
#endif

#if B
	double m, n;
	scanf("%lf%lf", &m, &n);
	printf("%.2f %.2f\n", n, m);
#endif

#if C1
	double m, n, p, min, mid, max;
	scanf("%lf%lf%lf", &m, &n, &p);

	if (m < n)
	{
		if (n < p)
		{
			min = m;
			mid = n;
			max = p;
		}
		else if (m < p)
		{
			min = m;
			mid = p;
			max = n;
		}
		else
		{
			min = p;
			mid = m;
			max = n;
		}
	}
	else
	{
		if (m < p)
		{
			min = n;
			mid = m;
			max = p;
		}
		else if (n < p)
		{
			min = n;
			mid = p;
			max = m;
		}
		else
		{
			min = p;
			mid = n;
			max = m;
		}
	}
	
	printf("%.2f %.2f %.2f\n", min, mid, max);
#endif

#if C2
	double myarray[3];
	scanf("%lf%lf%lf", &myarray[0], &myarray[1], &myarray[2]);
	
	sort(myarray, myarray + 3, mycompare);
	for (int i = 0; i < 3; ++i)
	{
		if (i < 2)
			printf("%.2f ", myarray[i]);
		else
			printf("%.2f", myarray[i]);
	}
	printf("\n");
#endif

#if D
	int myarray[3];
	scanf("%d%d%d", &myarray[0], &myarray[1], &myarray[2]);

	sort(myarray, myarray + 3, mycompare2);
	
	printf("%d\n", myarray[0]);
#endif

#if E
	double profit, award = 0;
	scanf("%lf", &profit);

	if (profit > 0)
	{
		switch ((int)(profit / shiwan))
		{
		case 0:
			award = profit * 0.1;
			break;
		case 1:
		case 2:
			award = yiwan + (profit - shiwan) * 0.75;
			break;
		case 3:
		case 4:
			award = 1.75 * yiwan + (profit - 2 * shiwan) * 0.05;
			break;
		case 5:
		case 6:
			award = 2.75 * yiwan + (profit - 4 * shiwan) * 0.03;
			break;
		case 7:
		case 8:
		case 9:
		case 10:
			award = 3.35 * yiwan + (profit - 6 * shiwan) * 0.015;
			break;
		default:
			award = 3.95 * yiwan + (profit - 10 * shiwan) * 0.01;
		}
	}
	printf("%.2f\n", award);
#endif

	return 0;
}
/**
*备用注释：
*
*
*
*/